/**
 * Skeleton 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/skeleton/style';

export const skeletonThemeConfig: Partial<ComponentToken> = {
  gradientFromColor: 'rgba(0, 0, 0, 0.06)' as any,
  gradientToColor: 'rgba(0, 0, 0, 0.15)' as any,
  titleHeight: 16,
  blockRadius: 2,
  paragraphMarginTop: 24,
  paragraphLiHeight: 16,
};

export const getSkeletonTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...skeletonThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as SkeletonComponentToken } from 'antd/es/skeleton/style';

